package com.yuyou.fn.educational.mapper;

import com.github.wens.mybatisplus.mapper.AutoMapper;
import com.yuyou.fn.educational.entity.StudentReg;
import com.yuyou.fn.educational.vo.StudentClassVo;
import com.yuyou.fn.educational.vo.StudentHistoryRegInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *
 * StudentReg 表数据库控制层接口
 *
 */
public interface StudentRegMapper extends AutoMapper<StudentReg,Long> {


    List<StudentHistoryRegInfoVo> findStudentHistoryRegInfo(@Param("studentId") Long studentId, @Param("relPeriodIdList") List<Long> relPeriodIdList);

    List<Long> queryRegStudentIds(@Param("areaTeamId") Long areaTeamId ,@Param("subjectId") Long subjectId , @Param("periodIds") List<Long> periodIds, @Param("gradeIds") List<Long> gradeIds, @Param("levels") List<Integer> levels, @Param("campusIds") List<Long> campusIds);

    StudentClassVo findStudentClass(@Param("studentId")long studentId, @Param("classId") long classId);

    List<StudentClassVo> findStudentClassList(@Param("studentIds")List<Long> studentIds, @Param("classIds")List<Long> classIds);
}